<template>
  <me-navbar class="header">
    <template v-slot:center>
      <me-search-box placeholder="开学季有礼，好货5折起" fake @query="getQuery" @click.native="goToSearch" />
    </template>
    <template v-slot:right>
      <i class="iconfont icon-msg"></i>
    </template>
  </me-navbar>
</template>

<script>
import MeNavbar from 'base/navbar';
import MeSearchBox from 'base/search-box';
export default {
  name: 'CategoryHeader',
  components: {
    MeNavbar,
    MeSearchBox
  },
  methods: {
    getQuery(query) {
      return query;
    },
    goToSearch() {
      this.$router.push('/search');
    }
  }
};
</script>

<style lang="scss" scoped>
@import "~assets/scss/mixins";

.header {
  &.mine-navbar {
    background-color: $header-bgc-translucent;
  }

  .iconfont {
    color: $icon-color-default;
    font-size: $icon-font-size;
  }
}
</style>
